﻿@model BusinessDetailsTabsViewModel
<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td>
            @if (@Model.BusinessId > 0)
            {
                <a href="@Url.Action("GeneralInfo", "Business", new { id = Model.BusinessId })">
                    <input name="" type="button" class="btn apps_btn apps_gray_btn" value="General Info" /></a>
                <a href="@Url.Action("BusinessHours", "Business", new { id = Model.BusinessId })">
                    <input name="" type="button" class="btn apps_btn apps_gray_btn" value="Business Hours" /></a>
                <a href="@Url.Action("BusinessCategories", "Business", new { id = Model.BusinessId })">
                    <input name="" type="button" class="btn apps_btn apps_gray_btn" value="Categories" /></a>
                <a href="@Url.Action("PaymentInfo", "Business", new { id = Model.BusinessId })">
                    <input name="" type="button" class="btn apps_btn apps_gray_btn" value="Payment Info" /></a>
                <a href="@Url.Action("Promotions", "Business", new { id = Model.BusinessId })">
                    <input name="" type="button" class="btn apps_btn apps_gray_btn" value="Promotions" /></a>
                <a href="@Url.Action("Billing", "Business", new { id = Model.BusinessId })">
                    <input name="" type="button" class="btn apps_btn apps_gray_btn" value="Billing" /></a>
            }
            else
            {
                switch (Model.BusinessSection)
                {
                    case BusinessSection.GeneralInfo:     
                        <a href="@Url.Action("GeneralInfo", "Business")">
                            <input name="" type="button" class="btn apps_btn apps_gray_btn" value="General Info" /></a>
                        <text><span>&raquo;</span> Business Hours <span>&raquo;</span> Categories <span>&raquo;</span>
                        Payment Info</text>
                            break;
                    case BusinessSection.BusinessHours:
                        <a href="@Url.Action("GeneralInfo", "Business")">
                            <input name="" type="button" class="btn apps_btn apps_gray_btn" value="General Info" /></a>
                        <a href="@Url.Action("BusinessHours", "Business")">
                            <input name="" type="button" class="btn apps_btn apps_gray_btn" value="Business Hours" /></a>
                        <a href="#">Categories</a>
                        <a href="#">Payment Info</a>
                            break;
                    case BusinessSection.Categories:
                        <a href="@Url.Action("GeneralInfo", "Business")">
                            <input name="" type="button" class="btn apps_btn apps_gray_btn" value="General Info" /></a>
                        <a href="@Url.Action("BusinessHours", "Business")">
                            <input name="" type="button" class="btn apps_btn apps_gray_btn" value="Business Hours" /></a>
                        <a href="@Url.Action("BusinessCategories", "Business")">
                            <input name="" type="button" class="btn apps_btn apps_gray_btn" value="Categories" /></a>
                        <a href="#">Payment Info</a>
                            break;
                    case BusinessSection.PaymentInfo:
                        <a href="@Url.Action("GeneralInfo", "Business")">
                            <input name="" type="button" class="btn apps_btn apps_gray_btn" value="General Info" /></a>
                        <a href="@Url.Action("BusinessHours", "Business")">
                            <input name="" type="button" class="btn apps_btn apps_gray_btn" value="Business Hours" /></a>
                        <a href="@Url.Action("BusinessHours", "Business")">
                            <input name="" type="button" class="btn apps_btn apps_gray_btn" value="Categories" /></a>
                        <a href="@Url.Action("PaymentInfo", "Business")">
                            <input name="" type="button" class="btn apps_btn apps_gray_btn" value="Payment Info" /></a>
                        break;
                    case BusinessSection.Promotions:
                        break;
                    case BusinessSection.Billing:
                        break;
                }
            }
        </td>
    </tr>
</table>
